package com.heima.api.admin;

import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author feng js
 */
@Api(value = "敏感词管理",tags = "sensitive",description = "敏感词管理API")
public interface AdSensitiveControllerApi {
    @ApiOperation(value = "敏感词分页查询")
    ResponseResult findBypageAndName(SensitiveDto sensitiveDto);

    /**
     * 敏感词新增
     * @param adSensitive
     * @return
     */
    @ApiOperation(value = "敏感词新增")
    ResponseResult insert(AdSensitive adSensitive);

    /**
     * 敏感词修改
     * @param adSensitive
     * @return
     */
    @ApiOperation(value = "敏感词修改")
    ResponseResult update(AdSensitive adSensitive);

    /**
     * 敏感词删除
     * @param id
     * @return
     */
    @ApiOperation(value = "敏感词删除")
    ResponseResult deleteById (Integer id);
}
